package cn.com.thinvent.dispatch.dao;

import cn.com.thinvent.dispatch.dao.base.BaseMapper;
import cn.com.thinvent.dispatch.entity.ModelDatasourceResultMapping;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ModelDatasourceResultMappingMapper extends BaseMapper<ModelDatasourceResultMapping> {
    void deleteByTaskId(@Param("taskId") Integer taskId);

    List<ModelDatasourceResultMapping> queryByTaskId(@Param("taskId") Integer taskId);

    List<ModelDatasourceResultMapping> queryAllByLimit(@Param("taskId") Integer taskId, @Param("pageBegin") Integer pageBegin,
                                                       @Param("pageSize") Integer pageSize);

    Long count(@Param("taskId") Integer taskId);
}
